package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.dto.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.dto.NewsDto;

import java.util.List;

public interface ApArticleService extends IService<ApArticle> {

     ResponseResult<List<ApArticle>> load2(short loadtype, ArticleHomeDto dto);
    ResponseResult downOrUp(NewsDto dto);

    ResponseResult<List<ApArticle>> load(short loadtypeLoadMore, ArticleHomeDto dto);

    ResponseResult findById(ArticleInfoDto dto);

    ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    void computeHotArticle();
}
